<template>
  <div class="confirm-dialog">
    <el-dialog
      title="提示"
      :visible.sync="dialogVisible"
      width="400px"
      :before-close="handleClose"
    >
      <div class="tip">
        <span class="el-icon-question" />
        是否完成个人签章认证 ?
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="updateStatus">否</el-button>
        <el-button type="primary" @click="updateStatus">是</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: 'CertificationComfirmDialog',
  data() {
    return {
      dialogVisible: false
    }
  },
  methods: {
    handleClose(done) {
      this.updateStatus()
      done()
    },
    updateStatus() {
      this.$emit('update')
      this.dialogVisible = false
    }
  }
}
</script>
<style>
.confirm-dialog .el-dialog__title {
  display: block !important;
}
</style>
<style scoped lang="less">
.tip {
  font-size: 14px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  span {
    font-size: 30px;
    color: #fe9400;
    margin-right: 8px;
  }
}
</style>
